package com.ruoyi.project.system.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 课程对象 course
 *
 * @author ruoyi
 * @date 2021-04-07
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    /** 学分 */
    @Excel(name = "学分")
    private Integer credit;

    /** 学时 */
    @Excel(name = "学时")
    private Integer creditHour;

    /** 开课学期 */
    @Excel(name = "开课学期")
    private String term;

    /** 所属教师ID */
    @Excel(name = "所属教师ID")
    private Long teacherId;

    /** 所属教师名称 */
    @Excel(name = "所属教师名称")
    private String teacherName;

    private String classIds;

    private Long studentId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCredit(Integer credit)
    {
        this.credit = credit;
    }

    public Integer getCredit()
    {
        return credit;
    }
    public void setCreditHour(Integer creditHour)
    {
        this.creditHour = creditHour;
    }

    public Integer getCreditHour()
    {
        return creditHour;
    }
    public void setTerm(String term)
    {
        this.term = term;
    }

    public String getTerm()
    {
        return term;
    }
    public void setTeacherId(Long teacherId)
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId()
    {
        return teacherId;
    }
    public void setTeacherName(String teacherName)
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName()
    {
        return teacherName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("name", getName())
            .append("credit", getCredit())
            .append("creditHour", getCreditHour())
            .append("term", getTerm())
            .append("teacherId", getTeacherId())
            .append("teacherName", getTeacherName())
            .toString();
    }

    public String getClassIds() {
        return classIds;
    }

    public void setClassIds(String classIds) {
        this.classIds = classIds;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
}
